/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.fd.dao;

import com.xy.biz.fd.domain.po.DocumentCodeRulePO;

/**
 * 
 * 
 * @author zsp
 * @date 2021-4-29
 */
public interface DocumentCodeRuleDao {
	
	/**
	 * 保存
	 *
	 * @param documentCodeRulePO
	 */
	int saveDocumentCodeRule(DocumentCodeRulePO documentCodeRulePO);
	
	/**
	 * 更新
	 *
	 * @param oldDocumentCodeRulePO
	 * @param newDocumentCodeRulePO
	 */
	int updateDocumentCodeRule(DocumentCodeRulePO oldDocumentCodeRulePO, DocumentCodeRulePO newDocumentCodeRulePO);
	
	/**
	 * 删除
	 *
	 * @param documentCodeRuleId
	 */
	int deleteDocumentCodeRule(Long documentCodeRuleId);
	
	/**
	 * 查找一个
	 *
	 * @param name
	 * @return
	 */
	DocumentCodeRulePO getDocumentCodeRule(String name);
	
}
